package com.suotuo.module.shiro.controller;

import com.suotuo.module.shiro.entity.SysMenu;
import com.suotuo.module.shiro.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author liulubingjava@163.com
 * @date 2019/1/31 15:07
 */
@RestController
public class SysMenuController {
    @Autowired
    private MenuService menuService;

    @GetMapping("/menu/nav")
    public List<SysMenu> getList(){
        return menuService.getMenuList();
    }
}
